<?php
namespace app\admin\controller;
use think\Config;

class Sample extends Base
{
    public function _initialize()
    {
        parent::_initialize();
        $nav = Config::get('sample.nav');
        $this->assign('nav', $nav);
    }
 	
    public function index()
    {
    	// 模板变量赋值
        $this->assign('name','ThinkPHP');
        $this->assign('email','thinkphp@qq.com');
        // 或者批量赋值
        $this->assign([
            'name'  => 'ThinkPHP',
            'email' => 'thinkphp@qq.com'
        ]);
        // 模板输出
        return $this->fetch();
    }

    public function flot_chart(){
        return $this->fetch();
    }

    public function morris_chart(){
        return $this->fetch();
    }

    public function table(){
        return $this->fetch();
    }

    public function form(){
        return $this->fetch();
    }

    public function buttons(){
        return $this->fetch();
    }

    public function notifications(){
        return $this->fetch();
    }

    public function typography(){
        return $this->fetch();
    }

    public function icons(){
        return $this->fetch();
    }

    public function grid(){
        return $this->fetch();
    }

    public function second_level(){
        return $this->fetch();
    }

    public function third_level(){
        return $this->fetch();
    }

    public function blank_page(){
        return $this->fetch();
    }

    public function login_page(){
        return $this->fetch();
    }

}
